package edu.nf.supermarket.service;

import edu.nf.supermarket.entity.Address;

import java.util.List;

/**
 * @author yjj
 * @date 2025-05-21
 */
public interface AddressService {
    /**
     * 添加收货地址
     * @param address
     * @param userId
     */
    void addAddress(Address address, Integer userId);
    /**
     * 修改收货地址
     * @param address
     */
    void updateAddress(Address address);
    /**
     * 删除收货地址
     */
    void deleteAddress(Integer addressId);
    /**
     * 查询所有收货地址
     */
    List<Address> findAllAddress(Integer userId);
    /**
     * 设置默认收货地址
     */
    void defaultAddress(Integer userId);
    void setDefault(Integer userId, Integer addressId);
}
